package com.example.behaviorpattern.observer.impl;

import com.example.behaviorpattern.observer.MyMessage;
import lombok.Getter;
import lombok.Setter;

/**
 * 字符串消息
 *
 * @author yaojianfeng
 */
@Setter
public class StringMessage implements MyMessage {
    private String message;

    public StringMessage(String message) {
        this.message = message;
    }

    @Override
    public String getMsg() {
        return message;
    }
}
